<div id="products_cat" class="span-17">
	<h1><?php echo $productCategoryModel->name;?></h1>
	<?php 
		foreach($modelsList as $model) {
	?>
	<li><?php echo (isset($model->defaultPhoto)) ? CHtml::link(CHtml::image($model->defaultPhoto->thumbnailPath), array(Yii::app()->language.'/products/view/'. $model->slug)) : CHtml::image('images/no_photo.png'); ?>
			<p><?php echo CHtml::link($model->name, array(Yii::app()->language.'/products/view/'. $model->slug)); ?></p></li>
	<?php
		}
	?>
</div>
<div id="products_menu" class="span-6 last">
<h2><?php echo Yii::t('msg', 'Our Products');?></h2>
	<?php 
		foreach($productCategoriesList as $model) {
	?>
			<?php if ($model->subProductCategoriesCount==0) { ?>
				<h3><?php echo CHtml::link($model->name, array(Yii::app()->language.'/products/index/'. $model->slug));?></h3>
			<?php }else { ?>
				<h3><?php echo $model->name;?></h3>
			<?php }?>
			<?php if ($model->subProductCategoriesCount>0) {
				foreach ($model->subProductCategories as $sub) {
			?>
			<li><?php echo CHtml::link($sub->name, array(Yii::app()->language.'/products/index/'. $sub->slug));?></li>
			<?php
				}
			}
		}
	?>	
</div>
